<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>欢迎您</title>
    <link rel="stylesheet" type="text/css" href="/tp3.2/Public/css/article.css">
</head>
<body>
<div class="header">
    <div class="header-login"><a href="<?php echo U('Index/index');?>">BackStage</a></div>
    <div class="header-nav">
        <a class="header-url" href="">添加文章</a>
        <span style="color: #FFFFFF">您好，</span><a class="header-url" title="查看我的投稿记录" href="<?php echo U('User/showarticle');?>"  style="text-decoration: underline;"><?php echo ($user["mail"]); ?></a>
        <a class="header-url" href="<?php echo U('User/login');?>?quit=exit">退出登录</a>
    </div>
</div>
<!--------------------添加文章-------------------->
<div class="main">
    <div class="box">
        <div class="alist-title"><a href="<?php echo U('User/listarticle');?>" class="add">List</a>><span>article</span></div>
        <div class="box-form">
            <form action="<?php echo U('Home/Admin1/art_change');?>?aid=<?php echo ($arr["id"]); ?>" enctype="multipart/form-data" method="post">
                <div class="form-top">
                    <div class="form-upload">
                        <img src="/tp3.2/Public/<?php echo ($arr["headurl"]); ?>" class="form-img">
                        <input type="file" name="file">
                    </div>
                    <div class="form-instruction">
                        <span>文章标题</span><br>
                        <input type="text"  name="headline" value="<?php echo ($arr["headline"]); ?>"><br>
                        <span>文章列表页介绍</span><br>
                        <textarea name="instruct"><?php echo ($arr["instruct"]); ?></textarea>
                    </div>
                </div>
                <div class="form-checkbox">
                    <input type="checkbox" ><span>首页推荐</span>
                    <input type="checkbox"><span>文章页推荐</span>
                    <input type="checkbox"><span>排序越大越靠前</span>
                </div>
                <div class="form-bottom">
                    <textarea name="content"><?php echo ($arr["content"]); ?></textarea>
                </div>
                <input type="submit" id="submit" name="submit"  value="提交">

            </form>

        </div>
    </div>
</div>
<div class="footer"></div>
</body>
</html>